package composite;

/**
 * @author shenhan
 * @create 2020/4/3 11:04
 * @description
 */
public class Client {
    public static void main(String[] args) {
        University university = new University("清华大学", "Top 1");
        Collage collage1 = new Collage("计算机学院", "Top1");
        Collage collage2 = new Collage("信息工程学院", "Top1");
        collage1.add(new Department("软件工程", "软件工程"));
        collage1.add(new Department("网络工程", "网络工程"));
        collage2.add(new Department("信息工程", "信息工程"));
        collage2.add(new Department("通信工程", "通信工程"));
        university.add(collage1);
        university.add(collage2);
        collage1.print();
    }
}
